package com.trkj.dao.cf;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.Traininggactivity;

public interface TraininggactivityDAO extends CrudRepository<Traininggactivity, Long> {
	@Query("from Traininggactivity u where u.trainingName like ?1")
	public List<Traininggactivity> queryBytrainingName(String trainingName);
	@Query("from Traininggactivity u")
	public List<Traininggactivity> queryByPage(Pageable p);
}
